Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan primary key column before updating #3542

Merged
merged 2 commits into from
May 26, 2024
Merged

Conversation

andyfengHKU
Copy link
Contributor

@andyfengHKU andyfengHKU commented May 26, 2024

Description

This PR changes updating logic. When we try to update primary key column. Instead of looking up inside NodeTable, we now directly scan it in the source scan operator.

This PR also refactors set operators.

Fixes # (issue)

Contributor agreement

@andyfengHKU andyfengHKU changed the title Scan pk for set clause Scan primary key column before updating May 26, 2024
@andyfengHKU andyfengHKU requested a review from ray6080 May 26, 2024 04:36
Copy link

codecov bot commented May 26, 2024

Codecov Report

Attention: Patch coverage is 97.91667% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 89.07%. Comparing base (2518d65) to head (9e8fe50).
Report is 12 commits behind head on master.

Current head 9e8fe50 differs from pull request most recent head db42718

Please upload reports for the commit db42718 to get more accurate results.

Files Patch % Lines
...nclude/planner/operator/persistent/logical_merge.h 93.33% 1 Missing ⚠️
.../include/planner/operator/persistent/logical_set.h 80.00% 1 Missing ⚠️
src/optimizer/projection_push_down_optimizer.cpp 97.50% 1 Missing ⚠️
src/planner/operator/persistent/logical_set.cpp 95.65% 1 Missing ⚠️
src/planner/plan/plan_update.cpp 91.66% 1 Missing ⚠️
src/processor/map/map_set.cpp 98.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3542      +/-   ##
==========================================
- Coverage   90.01%   89.07%   -0.94%     
==========================================
  Files        1190     1202      +12     
  Lines       42956    43523     +567     
==========================================
+ Hits        38668    38770     +102     
- Misses       4288     4753     +465     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@andyfengHKU andyfengHKU force-pushed the scan-pk-for-set-clause branch from 5f2a3d3 to 933f437 Compare May 26, 2024 05:35
@ray6080 ray6080 merged commit 5d4d5c1 into master May 26, 2024
@ray6080 ray6080 deleted the scan-pk-for-set-clause branch May 26, 2024 06:03
@andyfengHKU andyfengHKU mentioned this pull request May 27, 2024
1 task
ted-wq-x pushed a commit to ted-wq-x/kuzu that referenced this pull request Nov 14, 2024
* Scan primary key when updating primary key

* Run clang-format

---------

Co-authored-by: CI Bot <andyfengHKU@users.noreply.github.com>

(cherry picked from commit 5d4d5c1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants